package com.example.mqtt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

/**
 CREATE TABLE mqtt_config_entity (
 id VARCHAR(255) PRIMARY KEY COMMENT '唯一标识',
 rowing_id VARCHAR(255) COMMENT '挺ID',
 rowing_no INT COMMENT '挺号',
 host VARCHAR(255) COMMENT 'MQTT服务器地址',
 client_id VARCHAR(255) COMMENT '客户端ID',
 user_name VARCHAR(255) COMMENT '用户名',
 password VARCHAR(255) COMMENT '密码',
 clean_session BOOLEAN COMMENT '是否清除会话',
 default_topic VARCHAR(255) COMMENT '默认主题',
 timeout INT COMMENT '超时时间',
 keepalive INT COMMENT '心跳间隔',
 connection_timeout INT COMMENT '连接超时时间',
 is_auto_connect BOOLEAN COMMENT '是否自动连接',
 train_topic VARCHAR(255) COMMENT '训练主题',
 environment_topic VARCHAR(255) COMMENT '环境主题',
 joint_topic VARCHAR(255) COMMENT '关节主题'
 );
 *
 */

@Data
@ToString
@TableName("mqtt_config_entity")
public class MqttConfigEntity {
    private String id;
    private String rowing_id;
    private int rowing_no;
    private String host;
    private String client_id;
    private String user_name;
    private String password;
    private boolean clean_session;
    private String default_topic;
    private int timeout;
    private int keepalive;
    private int connection_timeout;
    private boolean is_auto_connect;

    private String train_topic;
    private String environment_topic;
    private String joint_topic;
}
